interface PageData {
	pages?: number;
	pageSize?: number;
	total?: number;
	data: any[];
}

export default {
	/** 延迟 */
	timeout: 100,
	/** code */
	resultCode: 1,
	/** 分页数据 */
	pageData: ({ pages = 1, pageSize = 20, total = 20, data }: PageData) => {
		return {
			pages: pages,
			pageSize: pageSize,
			total: total,
			records: data,
		};
	},
};
